package db

import "family/pkg/snowflake"

func GetId() uint64 {
	// 生成节点实例
	node, err := snowflake.NewWorker(1)
	if err != nil {
		panic(err)
	}
	return node.GetId()
}
